<!DOCTYPE html><html lang="zh" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>hexo部署gitee | 审陌</title><meta name="author" content="审陌"><meta name="copyright" content="审陌"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="hexo本地搭建网站已在上节分享，不明白者可移步上文。gitee是国内打开开发的基于git的代码托管平台，与国外GitHub相得益彰，使用之前必须安装git，若没有gitee账号，先注册账号一、本地连接gitee本地打开Git Bash Here（终端）,键入如下命令：  git config –global user.name “demo”          &#x2F;&#x2F;demo为g">
<meta property="og:type" content="article">
<meta property="og:title" content="hexo部署gitee">
<meta property="og:url" content="https://gitee.com/trial-street/shenmo.git/2022/08/28/hexoGitee/index.html">
<meta property="og:site_name" content="审陌">
<meta property="og:description" content="hexo本地搭建网站已在上节分享，不明白者可移步上文。gitee是国内打开开发的基于git的代码托管平台，与国外GitHub相得益彰，使用之前必须安装git，若没有gitee账号，先注册账号一、本地连接gitee本地打开Git Bash Here（终端）,键入如下命令：  git config –global user.name “demo”          &#x2F;&#x2F;demo为g">
<meta property="og:locale">
<meta property="og:image" content="https://gitee.com/trial-street/shenmo.git/img/gitee.png">
<meta property="article:published_time" content="2022-08-28T09:12:04.000Z">
<meta property="article:modified_time" content="2023-10-30T12:29:16.230Z">
<meta property="article:author" content="审陌">
<meta property="article:tag" content="Gitee">
<meta property="article:tag" content="Hexo">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gitee.com/trial-street/shenmo.git/img/gitee.png"><link rel="shortcut icon" href="/shenmo/img/favicon.png"><link rel="canonical" href="https://gitee.com/trial-street/shenmo.git/2022/08/28/hexoGitee/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/shenmo/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
  root: '/shenmo/',
  algolia: undefined,
  localSearch: {"path":"/shenmo/search.xml","preload":false,"top_n_per_article":1,"unescape":false,"languages":{"hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found"}},
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: 'Copy Successful',
    error: 'Copy Error',
    noSupport: 'Browser Not Supported'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  dateSuffix: {
    just: 'Just now',
    min: 'minutes ago',
    hour: 'hours ago',
    day: 'days ago',
    month: 'months ago'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  infinitegrid: {
    js: 'https://cdn.jsdelivr.net/npm/@egjs/infinitegrid/dist/infinitegrid.min.js',
    buttonText: 'Load More'
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'hexo部署gitee',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2023-10-30 20:29:16'
}</script><script>(win=>{
      win.saveToLocal = {
        set: (key, value, ttl) => {
          if (ttl === 0) return
          const now = Date.now()
          const expiry = now + ttl * 86400000
          const item = {
            value,
            expiry
          }
          localStorage.setItem(key, JSON.stringify(item))
        },
      
        get: key => {
          const itemStr = localStorage.getItem(key)
      
          if (!itemStr) {
            return undefined
          }
          const item = JSON.parse(itemStr)
          const now = Date.now()
      
          if (now > item.expiry) {
            localStorage.removeItem(key)
            return undefined
          }
          return item.value
        }
      }
    
      win.getScript = (url, attr = {}) => new Promise((resolve, reject) => {
        const script = document.createElement('script')
        script.src = url
        script.async = true
        script.onerror = reject
        script.onload = script.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          script.onload = script.onreadystatechange = null
          resolve()
        }

        Object.keys(attr).forEach(key => {
          script.setAttribute(key, attr[key])
        })

        document.head.appendChild(script)
      })
    
      win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
        const link = document.createElement('link')
        link.rel = 'stylesheet'
        link.href = url
        if (id) link.id = id
        link.onerror = reject
        link.onload = link.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          link.onload = link.onreadystatechange = null
          resolve()
        }
        document.head.appendChild(link)
      })
    
      win.activateDarkMode = () => {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = () => {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
        if (t === 'dark') activateDarkMode()
        else if (t === 'light') activateLightMode()
      
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
      const detectApple = () => {
        if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
          document.documentElement.classList.add('apple')
        }
      }
      detectApple()
    })(window)</script><meta name="generator" content="Hexo 6.2.0"><link rel="alternate" href="/shenmo/atom.xml" title="审陌" type="application/atom+xml">
</head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/shenmo/img/fluid.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/shenmo/archives/"><div class="headline">Articles</div><div class="length-num">19</div></a><a href="/shenmo/tags/"><div class="headline">Tags</div><div class="length-num">19</div></a><a href="/shenmo/categories/"><div class="headline">Categories</div><div class="length-num">17</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/shenmo/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/shenmo/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/shenmo/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/shenmo/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 个人</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/shenmo/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/shenmo/movies/"><i class="fa-fw fas fa-video"></i><span> 视频</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/shenmo/link/"><i class="fa-fw fas fa-link"></i><span> 友情链接</span></a></div><div class="menus_item"><a class="site-page" href="/shenmo/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg fixed" id="page-header" style="background-image: url('/shenmo/img/gitee.png')"><nav id="nav"><span id="blog-info"><a href="/shenmo/" title="审陌"><span class="site-name">审陌</span></a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> Search</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/shenmo/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/shenmo/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/shenmo/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/shenmo/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 个人</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/shenmo/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/shenmo/movies/"><i class="fa-fw fas fa-video"></i><span> 视频</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/shenmo/link/"><i class="fa-fw fas fa-link"></i><span> 友情链接</span></a></div><div class="menus_item"><a class="site-page" href="/shenmo/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">hexo部署gitee</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">Created</span><time class="post-meta-date-created" datetime="2022-08-28T09:12:04.000Z" title="Created 2022-08-28 17:12:04">2022-08-28</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2023-10-30T12:29:16.230Z" title="Updated 2023-10-30 20:29:16">2023-10-30</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/shenmo/categories/Gitee/">Gitee</a><i class="fas fa-angle-right post-meta-separator"></i><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/shenmo/categories/Gitee/Hexo/">Hexo</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="hexo部署gitee"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">Post Views:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h4 id="hexo本地搭建网站已在上节分享，不明白者可移步上文。gitee是国内打开开发的基于git的代码托管平台，与国外GitHub相得益彰，使用之前必须安装git，若没有gitee账号，先注册账号"><a href="#hexo本地搭建网站已在上节分享，不明白者可移步上文。gitee是国内打开开发的基于git的代码托管平台，与国外GitHub相得益彰，使用之前必须安装git，若没有gitee账号，先注册账号" class="headerlink" title="hexo本地搭建网站已在上节分享，不明白者可移步上文。gitee是国内打开开发的基于git的代码托管平台，与国外GitHub相得益彰，使用之前必须安装git，若没有gitee账号，先注册账号"></a>hexo本地搭建网站已在上节分享，不明白者可移步上文。gitee是国内打开开发的基于git的代码托管平台，与国外GitHub相得益彰，使用之前必须安装git，若没有gitee账号，先注册账号</h4><h3 id="一、本地连接gitee"><a href="#一、本地连接gitee" class="headerlink" title="一、本地连接gitee"></a>一、本地连接gitee</h3><p>本地打开Git Bash Here（终端）,键入如下命令：</p>
<blockquote>
<p>git config –global user.name “demo”          &#x2F;&#x2F;demo为gitee注册用户名<br>git config –glabal user.email “<a href="mailto:&#120;&#x78;&#x78;&#64;&#x31;&#x36;&#56;&#46;&#99;&#x6f;&#109;">&#120;&#x78;&#x78;&#64;&#x31;&#x36;&#56;&#46;&#99;&#x6f;&#109;</a>“   &#x2F;&#x2F;<a href="mailto:&#120;&#x78;&#x78;&#x40;&#49;&#54;&#56;&#46;&#x63;&#x6f;&#x6d;">&#120;&#x78;&#x78;&#x40;&#49;&#54;&#56;&#46;&#x63;&#x6f;&#x6d;</a>为gitee注册邮箱</p>
</blockquote>
<h3 id="二、生成SSH-KEY"><a href="#二、生成SSH-KEY" class="headerlink" title="二、生成SSH KEY"></a>二、生成SSH KEY</h3><blockquote>
<p>ssh-keygen -t rsa -C “email”       &#x2F;&#x2F;email为注册邮箱</p>
</blockquote>
<p>键入后一路回车（Enter），最后出现The key’s randomart image is: 就可以了，然后会在C: &#x2F;user&#x2F;Lenovo&#x2F;.ssh生成一个公钥（id_rsa.pub）跟y一个私钥（id_rsa），记事本打开公钥复制其内容</p>
<h3 id="三、登录gitee"><a href="#三、登录gitee" class="headerlink" title="三、登录gitee"></a>三、登录gitee</h3><p>新建仓库，自定义仓库名称&#x3D;》公开（如果没有公开选项，可在该仓库建好后&#x3D;》管理&#x3D;》开源&#x3D;》保存）&#x3D;》初始化仓库（语言选择JavaScript）&#x3D;》设置模板（选择Readme文件）&#x3D;》创建</p>
<h2 id="四、配置公钥"><a href="#四、配置公钥" class="headerlink" title="四、配置公钥"></a>四、配置公钥</h2><p>头像下拉找到设置&#x3D;》SSH公钥，将刚刚复制的公钥粘贴至公钥栏，标题自定义，我一般与仓库名同步，然后确定</p>
<h2 id="五、复制地址"><a href="#五、复制地址" class="headerlink" title="五、复制地址"></a>五、复制地址</h2><p>进入该仓库&#x3D;》克隆&#x2F;下载（GitHub上为clone）&#x3D;》SSH&#x3D;》复制</p>
<h3 id="六、修改hexo本地配置，找到-config-yml"><a href="#六、修改hexo本地配置，找到-config-yml" class="headerlink" title="六、修改hexo本地配置，找到_config.yml"></a>六、修改hexo本地配置，找到_config.yml</h3><blockquote>
<p>deploy:<br>type: git<br>repo: <a href="mailto:&#103;&#x69;&#116;&#64;&#103;&#105;&#x74;&#x65;&#x65;&#x2e;&#99;&#111;&#x6d;">&#103;&#x69;&#116;&#64;&#103;&#105;&#x74;&#x65;&#x65;&#x2e;&#99;&#111;&#x6d;</a>:xxxxx&#x2F;demo.git      &#x2F;&#x2F;<a href="mailto:&#103;&#x69;&#x74;&#x40;&#103;&#x69;&#x74;&#101;&#x65;&#x2e;&#99;&#x6f;&#x6d;">&#103;&#x69;&#x74;&#x40;&#103;&#x69;&#x74;&#101;&#x65;&#x2e;&#99;&#x6f;&#x6d;</a>:xxxxx&#x2F;demo.git为上步复制的SSH地址<br>brach: master</p>
</blockquote>
<h3 id="七、项目安装一键部署依赖，根目录终端键入如下命令："><a href="#七、项目安装一键部署依赖，根目录终端键入如下命令：" class="headerlink" title="七、项目安装一键部署依赖，根目录终端键入如下命令："></a>七、项目安装一键部署依赖，根目录终端键入如下命令：</h3><p>npm install hexo-deployer-git –save</p>
<h3 id="八、安装完成后，键入如下命令"><a href="#八、安装完成后，键入如下命令" class="headerlink" title="八、安装完成后，键入如下命令"></a>八、安装完成后，键入如下命令</h3><p>hexo cl &amp;&amp; hexo g &amp;&amp; hexo d</p>
<h3 id="九、进入仓库-x3D-》管理-x3D-》Gitee-Pages-x3D-》强制使用https-x3D-》更新"><a href="#九、进入仓库-x3D-》管理-x3D-》Gitee-Pages-x3D-》强制使用https-x3D-》更新" class="headerlink" title="九、进入仓库&#x3D;》管理&#x3D;》Gitee Pages&#x3D;》强制使用https&#x3D;》更新"></a>九、进入仓库&#x3D;》管理&#x3D;》Gitee Pages&#x3D;》强制使用https&#x3D;》更新</h3><p>如上，便会生成一个在线地址，可以进行访问。不过，Gitee Pages需要实名认证才可使用，未实名者需先实名。</p>
<h3 id="十、修改项目配置-config-yml"><a href="#十、修改项目配置-config-yml" class="headerlink" title="十、修改项目配置_config.yml"></a>十、修改项目配置_config.yml</h3><blockquote>
<p>url: <a href="https://gitee.com/test/eee.git">https://gitee.com/test/eee.git</a>        &#x2F;&#x2F;url修改为https地址（gitee&#x3D;》克隆&#x3D;》复制）<br>root: &#x2F;eee&#x2F;                                             &#x2F;&#x2F;eee为仓库名，原文件没有root，属新增<br>注：（若不修改会出现css失效）</p>
</blockquote>
<h3 id="十一、终端键入如下命令"><a href="#十一、终端键入如下命令" class="headerlink" title="十一、终端键入如下命令"></a>十一、终端键入如下命令</h3><blockquote>
<p>hexo cl &amp;&amp; hexo g &amp;&amp; hexo d</p>
</blockquote>
<h3 id="十二、更新"><a href="#十二、更新" class="headerlink" title="十二、更新"></a>十二、更新</h3><p>完成后，回到gitee，进入仓库&#x3D;》服务&#x3D;》更新</p>
<h3 id="十三、访问地址"><a href="#十三、访问地址" class="headerlink" title="十三、访问地址"></a>十三、访问地址</h3><p>已开启 Gitee Pages 服务，网站地址： <a target="_blank" rel="noopener" href="https://trial-street.gitee.io/shenmo">https://trial-street.gitee.io/shenmo</a></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta"><i class="fas fa-circle-user fa-fw"></i>Author: </span><span class="post-copyright-info"><a href="https://gitee.com/trial-street/shenmo.git">审陌</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta"><i class="fas fa-square-arrow-up-right fa-fw"></i>Link: </span><span class="post-copyright-info"><a href="https://gitee.com/trial-street/shenmo.git/2022/08/28/hexoGitee/">https://gitee.com/trial-street/shenmo.git/2022/08/28/hexoGitee/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta"><i class="fas fa-circle-exclamation fa-fw"></i>Copyright Notice: </span><span class="post-copyright-info">All articles in this blog are licensed under <a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> unless stating additionally.</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/shenmo/tags/Gitee/">Gitee</a><a class="post-meta__tags" href="/shenmo/tags/Hexo/">Hexo</a></div><div class="post_share"><div class="social-share" data-image="/shenmo/img/gitee.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/shenmo/2022/08/28/internet/" title="Windows开启端口"><img class="cover" src="/shenmo/img/port.png" onerror="onerror=null;src='/shenmo/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">Previous</div><div class="prev_info">Windows开启端口</div></div></a></div><div class="next-post pull-right"><a href="/shenmo/2022/07/30/git/" title="Git日常操作合集"><img class="cover" src="/shenmo/img/git.png" onerror="onerror=null;src='/shenmo/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">Next</div><div class="next_info">Git日常操作合集</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="/shenmo/img/fluid.png" onerror="this.onerror=null;this.src='/shenmo/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">审陌</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/shenmo/archives/"><div class="headline">Articles</div><div class="length-num">19</div></a><a href="/shenmo/tags/"><div class="headline">Tags</div><div class="length-num">19</div></a><a href="/shenmo/categories/"><div class="headline">Categories</div><div class="length-num">17</div></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>Announcement</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>Contents</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-4"><a class="toc-link" href="#hexo%E6%9C%AC%E5%9C%B0%E6%90%AD%E5%BB%BA%E7%BD%91%E7%AB%99%E5%B7%B2%E5%9C%A8%E4%B8%8A%E8%8A%82%E5%88%86%E4%BA%AB%EF%BC%8C%E4%B8%8D%E6%98%8E%E7%99%BD%E8%80%85%E5%8F%AF%E7%A7%BB%E6%AD%A5%E4%B8%8A%E6%96%87%E3%80%82gitee%E6%98%AF%E5%9B%BD%E5%86%85%E6%89%93%E5%BC%80%E5%BC%80%E5%8F%91%E7%9A%84%E5%9F%BA%E4%BA%8Egit%E7%9A%84%E4%BB%A3%E7%A0%81%E6%89%98%E7%AE%A1%E5%B9%B3%E5%8F%B0%EF%BC%8C%E4%B8%8E%E5%9B%BD%E5%A4%96GitHub%E7%9B%B8%E5%BE%97%E7%9B%8A%E5%BD%B0%EF%BC%8C%E4%BD%BF%E7%94%A8%E4%B9%8B%E5%89%8D%E5%BF%85%E9%A1%BB%E5%AE%89%E8%A3%85git%EF%BC%8C%E8%8B%A5%E6%B2%A1%E6%9C%89gitee%E8%B4%A6%E5%8F%B7%EF%BC%8C%E5%85%88%E6%B3%A8%E5%86%8C%E8%B4%A6%E5%8F%B7"><span class="toc-number">1.</span> <span class="toc-text">hexo本地搭建网站已在上节分享，不明白者可移步上文。gitee是国内打开开发的基于git的代码托管平台，与国外GitHub相得益彰，使用之前必须安装git，若没有gitee账号，先注册账号</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%80%E3%80%81%E6%9C%AC%E5%9C%B0%E8%BF%9E%E6%8E%A5gitee"><span class="toc-number"></span> <span class="toc-text">一、本地连接gitee</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%BA%8C%E3%80%81%E7%94%9F%E6%88%90SSH-KEY"><span class="toc-number"></span> <span class="toc-text">二、生成SSH KEY</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%89%E3%80%81%E7%99%BB%E5%BD%95gitee"><span class="toc-number"></span> <span class="toc-text">三、登录gitee</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%9B%9B%E3%80%81%E9%85%8D%E7%BD%AE%E5%85%AC%E9%92%A5"><span class="toc-number"></span> <span class="toc-text">四、配置公钥</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BA%94%E3%80%81%E5%A4%8D%E5%88%B6%E5%9C%B0%E5%9D%80"><span class="toc-number"></span> <span class="toc-text">五、复制地址</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%85%AD%E3%80%81%E4%BF%AE%E6%94%B9hexo%E6%9C%AC%E5%9C%B0%E9%85%8D%E7%BD%AE%EF%BC%8C%E6%89%BE%E5%88%B0-config-yml"><span class="toc-number"></span> <span class="toc-text">六、修改hexo本地配置，找到_config.yml</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%83%E3%80%81%E9%A1%B9%E7%9B%AE%E5%AE%89%E8%A3%85%E4%B8%80%E9%94%AE%E9%83%A8%E7%BD%B2%E4%BE%9D%E8%B5%96%EF%BC%8C%E6%A0%B9%E7%9B%AE%E5%BD%95%E7%BB%88%E7%AB%AF%E9%94%AE%E5%85%A5%E5%A6%82%E4%B8%8B%E5%91%BD%E4%BB%A4%EF%BC%9A"><span class="toc-number"></span> <span class="toc-text">七、项目安装一键部署依赖，根目录终端键入如下命令：</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%85%AB%E3%80%81%E5%AE%89%E8%A3%85%E5%AE%8C%E6%88%90%E5%90%8E%EF%BC%8C%E9%94%AE%E5%85%A5%E5%A6%82%E4%B8%8B%E5%91%BD%E4%BB%A4"><span class="toc-number"></span> <span class="toc-text">八、安装完成后，键入如下命令</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B9%9D%E3%80%81%E8%BF%9B%E5%85%A5%E4%BB%93%E5%BA%93-x3D-%E3%80%8B%E7%AE%A1%E7%90%86-x3D-%E3%80%8BGitee-Pages-x3D-%E3%80%8B%E5%BC%BA%E5%88%B6%E4%BD%BF%E7%94%A8https-x3D-%E3%80%8B%E6%9B%B4%E6%96%B0"><span class="toc-number"></span> <span class="toc-text">九、进入仓库&#x3D;》管理&#x3D;》Gitee Pages&#x3D;》强制使用https&#x3D;》更新</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%8D%81%E3%80%81%E4%BF%AE%E6%94%B9%E9%A1%B9%E7%9B%AE%E9%85%8D%E7%BD%AE-config-yml"><span class="toc-number"></span> <span class="toc-text">十、修改项目配置_config.yml</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%8D%81%E4%B8%80%E3%80%81%E7%BB%88%E7%AB%AF%E9%94%AE%E5%85%A5%E5%A6%82%E4%B8%8B%E5%91%BD%E4%BB%A4"><span class="toc-number"></span> <span class="toc-text">十一、终端键入如下命令</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%8D%81%E4%BA%8C%E3%80%81%E6%9B%B4%E6%96%B0"><span class="toc-number"></span> <span class="toc-text">十二、更新</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%8D%81%E4%B8%89%E3%80%81%E8%AE%BF%E9%97%AE%E5%9C%B0%E5%9D%80"><span class="toc-number"></span> <span class="toc-text">十三、访问地址</span></a></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>Recent Post</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/shenmo/2023/10/30/flySearch/" title="ButterFly 主题"><img src="/shenmo/img/butterfly.png" onerror="this.onerror=null;this.src='/shenmo/img/404.jpg'" alt="ButterFly 主题"/></a><div class="content"><a class="title" href="/shenmo/2023/10/30/flySearch/" title="ButterFly 主题">ButterFly 主题</a><time datetime="2023-10-30T13:24:00.000Z" title="Created 2023-10-30 21:24:00">2023-10-30</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/shenmo/2023/10/27/css/" title="CSS 案例合集"><img src="/shenmo/img/css.png" onerror="this.onerror=null;this.src='/shenmo/img/404.jpg'" alt="CSS 案例合集"/></a><div class="content"><a class="title" href="/shenmo/2023/10/27/css/" title="CSS 案例合集">CSS 案例合集</a><time datetime="2023-10-27T13:24:00.000Z" title="Created 2023-10-27 21:24:00">2023-10-27</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/shenmo/2023/10/27/echarts/" title="Echarts"><img src="/shenmo/img/echarts.png" onerror="this.onerror=null;this.src='/shenmo/img/404.jpg'" alt="Echarts"/></a><div class="content"><a class="title" href="/shenmo/2023/10/27/echarts/" title="Echarts">Echarts</a><time datetime="2023-10-27T13:24:00.000Z" title="Created 2023-10-27 21:24:00">2023-10-27</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/shenmo/2023/10/27/js/" title="JS API合集"><img src="/shenmo/img/js.png" onerror="this.onerror=null;this.src='/shenmo/img/404.jpg'" alt="JS API合集"/></a><div class="content"><a class="title" href="/shenmo/2023/10/27/js/" title="JS API合集">JS API合集</a><time datetime="2023-10-27T13:24:00.000Z" title="Created 2023-10-27 21:24:00">2023-10-27</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/shenmo/2023/10/27/vue3count/" title="vue3 问题合集"><img src="/shenmo/img/vue3.png" onerror="this.onerror=null;this.src='/shenmo/img/404.jpg'" alt="vue3 问题合集"/></a><div class="content"><a class="title" href="/shenmo/2023/10/27/vue3count/" title="vue3 问题合集">vue3 问题合集</a><time datetime="2023-10-27T13:24:00.000Z" title="Created 2023-10-27 21:24:00">2023-10-27</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2023 By 审陌</div><div class="framework-info"><span>Framework </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>Theme </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="Read Mode"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="Toggle Between Light And Dark Mode"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="Toggle between Single-column and Double-column"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="Setting"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="Table Of Contents"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="Back To Top"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/shenmo/js/utils.js"></script><script src="/shenmo/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.umd.min.js"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">Search</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  Loading the Database</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="Search for Posts" type="text"/></div></div><hr/><div id="local-search-results"></div><div id="local-search-stats-wrap"></div></div></div><div id="search-mask"></div><script src="/shenmo/js/search/local-search.js"></script></div></div></body></html>